<?php
require_once 'PHPUnit/Framework.php';

class objectsTest extends PHPUnit_Framework_TestCase
{
    public function testCleaner()
    {
      require_once(substr(__FILE__, 0, strrpos(__FILE__, '/')) . "/Preferences.php");
      $prefs = new Preferences();
      $prefs->reload();
      $result = $prefs->save();
      $this->assertEquals(true, $result);
    }
    
    public function testGetChannels()
    {
      require_once(substr(__FILE__, 0, strrpos(__FILE__, '/')) . "/Preferences.php");
      $prefs = new Preferences();
      $this->assertEquals(0, sizeof($prefs->getChannels()));
    }
}
?>